﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PredioLista.aspx.cs" Inherits="InfraWEB.UI.PredioLista" MasterPageFile="~/AdminMaster.Master" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
		<div>
			<h1 class="style3">Lista de Prédios</h1>
			<div class="error">
				<asp:Label runat="server" ID="lblMensagem" Visible="false"></asp:Label>
				<br />
			</div>
			<div class="oneline">
				<asp:Button ID="btnNovoUsuario" Text="Novo Prédio" onclick="btnNovoPredio_Click" runat="server"/>
				<br />
				<br />
			</div>
			<asp:GridView ID="predioGridView" runat="server" CellPadding="4" 
				ForeColor="#333333" GridLines="None" AllowPaging="True" 
				AllowSorting="True" AutoGenerateColumns="False" 
				DataKeyNames="PreId" 
				OnRowEditing="predioGridView_RowEditing" 
				OnRowDeleting="predioGridView_RowDeleting" 
				OnSorting="predioGridView_Sorting">
				<RowStyle BackColor="#EFF3FB" />
				<Columns>
					<asp:BoundField DataField="PreNome" HeaderText="Nome" 
						HeaderStyle-HorizontalAlign="Left" 
						SortExpression="PreNome" >
						<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					</asp:BoundField>
					<asp:CommandField ShowEditButton="True" EditText="Editar" />
					<asp:CommandField ShowDeleteButton="True" DeleteText="Remover" />
				</Columns>
				<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
				<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
				<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
				<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
				<EditRowStyle BackColor="#2461BF" />
				<AlternatingRowStyle BackColor="White" />
			</asp:GridView>
		</div>
</asp:Content>